package com.newsproject.pojo.DTO;


import Util.FormatTime;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("登录用户的信息")
public class AccountUser {
    private Integer userId;          //用户id
    private String userName;         //用户名
    private String passWord;         //密码
    private String email;            //邮箱
    private String verificationInfo;       //认证内容
    private String avatar;           // 头像
    private Integer followerCount;   // 粉丝数量
    private Integer likeCount;       // 关注数量
    private Integer prizeCount;      // 获赞数量
    //private boolean  isFollowed;      // 是否关注
    private Integer verifiedStatus;       //认证状态
    private Integer accountStatus;         //账号状态
    private Integer privateMsgStatus;   //私信状态
    private Integer commentStatus;      //评论状态
    private String  introduction;    //简介
    private Integer gender;          //性别
    private String address;          //地址
    private Integer memberStatus;    //会员状态
    private Integer adminStatus;   //管理员状态
    private Date time;             //注册时间
    private String createTime;     //注册时间
    public String getCreateTime() {
        return FormatTime.formatDateTime(time);
    }

}
